]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
NetworkMenu: place network items in the right position
authorGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 14 Jun 2011 16:24:59 +0000 (18:24 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 27 Jun 2011 15:19:33 +0000 (17:19 +0200)
_createNetworkItem was always appending access point at the end of
the menu when their position was < 5 (NUM_VISIBLE_NETWORKS), ignoring
the presence or absence of _overflowItem, which thus ended in the
middle of the network list. Fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=652313

js/ui/status/network.js

index 454b67392c0611fc27251ee77e933f1d838f9a48..3983703c586fc5521c81aaf88d45a656159f3dbe 100644 (file)
@@ -1531,7 +1531,7 @@ NMDeviceWireless.prototype = {
             }));
         }
         if (position < NUM_VISIBLE_NETWORKS)
-            this.section.addMenuItem(apObj.item);
+            this.section.addMenuItem(apObj.item, position);
         else {
             if (!this._overflowItem) {
                 this._overflowItem = new PopupMenu.PopupSubMenuMenuItem(_("More..."));